package com.wj.tool;

import java.util.HashMap;
import java.util.Map;

/**
 * @description:
 * @author: wj
 * @date: $ $
 **/
public class Main {

    public static void main(String[] args) {




    }

    /**
     * 打印 水仙花数
     */
    public void testShuixianhua(){
        int x,y,z;

        for (int i = 100; i < 1000; i++) {
            x = i/100;
            y = i/10%10;
            z = i%10;

            if (i == x*x*x+y*y*y+z*z*z){
                System.out.println("num:"+x+""+y+""+z);
            }

        }
    }

    public void testJuxing(){
        int[][] m = {
                {1,2,3},
                {4,5,6},
                {7,8,9}
        };

        int[][] b = {
                {7,4,1},
                {8,5,2},
                {9,6,3}
        };

        int l = m.length;

        b[0][0] = m[2][0];
        b[0][1] = m[1][0];
        b[0][2] = m[0][0];
        b[1][0] = m[2][1];
        b[1][1] = m[1][1];
        b[1][2] = m[0][1];
        b[2][0] = m[2][2];
        b[2][1] = m[1][2];
        b[2][2] = m[0][2];

        for (int i = 0; i < l; i++) {
            for (int j = 0; j < 1; j++) {
                
            }
        }
    }
}
